package com.hn.project.rqinspect.mapper;

import com.hn.common.enums.RoleIdEnum;
import com.hn.framework.web.dao.BaseMapper;
import com.hn.project.rqinspect.domain.database.SysUser;
import com.hn.project.rqinspect.domain.dto.LoginDto;
import org.apache.ibatis.annotations.Param;

public interface SysUserMapper extends BaseMapper<SysUser> {
    /**
     *  用户信息
     * @param userDingId 用户钉钉id
     * @return
     */
    LoginDto getUserByDingUserId(String userDingId);

    String getUserNamesByUserIds(@Param("otherCheckUserIds") String otherCheckUserIds);

    SysUser getUserById(Integer userId);

    LoginDto getUserInfo(Integer userId);

    Integer countRoleByUserId(@Param("userId") Integer userId, @Param("roleId")Integer roleId);
}
